#include <iostream>
#include "Game_Object.h"
#include "Util.h"


CGame_Object::CGame_Object(void)
{
}

CGame_Object::~CGame_Object(void)
{
}

bool CGame_Object::frameMove()
{
	m_old_x = m_x;
	m_old_y = m_y;
	if( m_y == 0 )	return false;
	else
	{
		if( m_LR == 1 )			m_x+=2;
		else if( m_LR == -1)	m_x-=2;
		else if( m_TB == 1 )	m_y+=1;
		else if( m_TB == -1)	m_y-=1;

		m_LR = m_TB = 0;
		return true;
	}
}
void CGame_Object::render()
{
	gotoxy( m_old_x, m_old_y );
	printf("  ");
	gotoxy( m_x, m_y );
	printf("%s", m_Shape);
}
